import React from 'react';
import ReactDom from 'react-dom';
import '@/pages/user/user.scss';
import {observer} from 'mobx-react';
import {UserTitle} from '@/components/UserTitle';
import {useHistory} from 'react-router-dom';
import {LoginPage} from "@/components/loginPage";
import { useUIStore, useRoomStore, useAppStore } from '@/hooks';
import {t} from "@/i18n";

type LoginMessage={
    mobile:string;
    password:string;
    Code:string;
}

type RegisterMessage={
    mobile:string;
    password:string;
    Code:string;
}

function UserPage(){
    document.title = t(`home.short_title.title`)

    //const classes = useStyles();

    const history = useHistory();

    //const uiStore = useUIStore();

   // const appStore = useAppStore();

    // @ts-ignore

    //要进行判断根据选择的值不同返回不同的东西
    return(
        <div>
            <UserTitle />
            <LoginPage />
        </div>
    )
}
export default React.memo(UserPage);